import tkinter
def class_start():
    label.config(text="大数据班上课")
def class_end():
    label.config(text="大数据班下课")
def lecture():
    label.config(text="正在讲课")
root = tkinter.Tk()
root.title("课程展示")
root.geometry("600x600")
my_font = ('Arial', 12, 'bold') #设置字体，大小和字体样式
label = tkinter.Label(root, text="付老师课堂")
label.pack()
button1 = tkinter.Button(root, text="上课",command=class_start,
                         width = 7, height = 1,
                         font=my_font, fg='blue',bg='yellow'
                         )
button1.pack(side=tkinter.LEFT)
button2 = tkinter.Button(root, text="下课",command=class_end,
                         width = 7, height = 1,
                         font=my_font, fg='red'
                         )
button2.pack(side=tkinter.RIGHT)
button3 = tkinter.Button(root, text="讲课1",command=lecture,
                         width = 7, height = 1,
                         font=my_font, fg='green'
                         )
button3.pack(side=tkinter.TOP)
root.mainloop()